package cn.tedu.carehome.foundation.mapper;

import cn.tedu.carehome.foundation.pojo.entity.Ill;
import cn.tedu.carehome.foundation.pojo.vo.IllListItemVO;
import cn.tedu.carehome.foundation.pojo.vo.IllStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 处理疾病资料数据的Mapper接口
 */
@Repository
public interface IllMapper {
    int insert(Ill ill);

    int insertBatch(List<Ill> illList);

    int deleteById(Long id);

    int deleteBatchByIds(Long[] ids);

    int update(Ill ill);

    int count();

    int countByName(String name);

    int countByOlderId(Long olderId);

    int countByMedicineId(Long medicineId);

    IllStandardVO getStandardById(Long id);

    List<IllListItemVO> list();

}
